DISCUSSION
The
ATSUGetContinuousAttributes function finds the style run information that is continuous over a range of text, including the default values of unset attributes, font features, and font variations.
You should call
ATSUGetContinuousAttributes to determine the style run information that remains constant over text that has been selected by the user. For example, the user might select the entire text block associated with a text layout object or a portion of it, then choose a different font family from your menu to render the text.
ATSUGetContinuousAttributes will determine whether the style is plain, boldfaced, italicized, underlined, condensed, or extended.
If you want to find the style run information at a given location and the range of text that shares this information, call the function
ATSUGetRunStyle.